<div class="panel panel-default" ng-controller="TerminalListCtrl">
	<div class="panel-heading">
		订票管理 / 目的站点
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.code" class="form-control" placeholder="助记码">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="站点名称">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
					<button type="button" class="btn btn-info" ng-click="sync()" has-authority="BOOKING_TERMINAL_SYNC">同步站点信息</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">助记码</th>
					<th style="width:70px;">站点名称</th>
					<th style="width:70px;">是否可售</th>
					<th style="width:70px;">距离</th>
					<th style="width:70px;">区域码</th>
					<th style="width:70px;">省</th>
					<th style="width:70px;">市</th>
					<th style="width:70px;">区</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="terminal in dataList">
					<td></td>
					<td>{{terminal.code}}</td>
					<td>{{terminal.name}}</td>
					<td>
						<label class="i-switch bg-info m-t-xs m-r">
							<input type="checkbox" ng-checked="terminal.sellable" ng-click="onoff(terminal)">
							<i></i>
						</label>
					</td>
					<td>{{terminal.distance}}</td>
					<td>{{terminal.areaCode}}</td>
					<td>{{terminal.province}}</td>
					<td>{{terminal.city}}</td>
					<td>{{terminal.district}}</td>
				</tr>
				<tr ng-show="dataList==''">
				   <td colspan="9" style="text-align: center;">暂无终点站点信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>
